<?php

use Illuminate\Support\Facades\Route;
use Illuminate\Config;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


// 登录
Route::get("",'LoginController@index');
Route::post("login",'LoginController@login');


//Route::get('', function () {
//    return view('welcome');
//});

Route::get('user','UserController@index')->name("user");

Route::get('test','TestController@index');

// 获取环境配置
Route::get('env',function (){
    var_dump(env("APP_DEBUG"));
    var_dump(env("DB_HOST"));
    var_dump(env("DB_PREFIX",'blog_'));
});

// 获取配置
Route::get('config',function (){
    // 修改配置
    Config(['app.title'=>'are you']);
    echo Config('app.title');
//    var_dump(date('Y-m-d H:i:s'));
//    var_dump(Config('app.timezone','PRC'));
});


//Route::get("login",'LoginController@putWeb');

//Route::put("login",'LoginController@put');



